﻿<form method="get" class="form-horizontal">
	<div class="form-group">
		<label class="col-sm-3 col-sm-offset-1 control-label">评论视频数量</label>
		<div class="col-sm-7">
			<div><input type="text" id="search" class="search" name="search" value="" /></div>
		</div>
	</div>
	<div class="form-group">
		<label class="col-sm-3 col-sm-offset-1 control-label">评论内容1</label>
		<div class="col-sm-7">
			<div><input type="text" id="search01" class="search2" name="search2" value="" /></div>
		</div>
	</div>
	<div class="form-group">
		<label class="col-sm-3 col-sm-offset-1 control-label">评论内容2</label>
		<div class="col-sm-7">
			<div><input type="text" id="search2" class="search2" name="search2" value="" /></div>
		</div>
	</div>
	<div class="form-group">
		<label class="col-sm-3 col-sm-offset-1 control-label">评论内容3</label>
		<div class="col-sm-7">
			<div><input type="text" id="search3" class="search2" name="search2" value="" /></div>
		</div>
	</div>
	<div class="form-group">
		<label class="col-sm-3 col-sm-offset-1 control-label">评论内容4</label>
		<div class="col-sm-7">
			<div><input type="text" id="search4" class="search2" name="search2" value="" /></div>
		</div>
	</div>
	<div class="form-group">
		<label class="col-sm-3 col-sm-offset-1 control-label">评论内容5</label>
		<div class="col-sm-7">
			<div><input type="text" id="search5" class="search2" name="search2" value="" /></div>
		</div>
	</div>
	<div class="form-group">
		<label class="col-sm-3 col-sm-offset-1 control-label">评论内容6</label>
		<div class="col-sm-7">
			<div><input type="text" id="search6" class="search2" name="search2" value="" /></div>
		</div>
	</div>
	<div class="form-group">
		<label class="col-sm-3 col-sm-offset-1 control-label">评论内容7</label>
		<div class="col-sm-7">
			<div><input type="text" id="search7" class="search2" name="search2" value="" /></div>
		</div>
	</div>
	<div class="form-group">
		<label class="col-sm-3 col-sm-offset-1 control-label">评论内容8</label>
		<div class="col-sm-7">
			<div><input type="text" id="search8" class="search2" name="search2" value="" /></div>
		</div>
	</div>
	<div class="form-group">
		<label class="col-sm-3 col-sm-offset-1 control-label">评论内容9</label>
		<div class="col-sm-7">
			<div><input type="text" id="search9" class="search2" name="search2" value="" /></div>
		</div>
	</div>
	<div class="form-group">
		<label class="col-sm-3 col-sm-offset-1 control-label">评论内容10</label>
		<div class="col-sm-7">
			<div><input type="text" id="search10" class="search2" name="search2" value="" /></div>
		</div>
	</div>

</form>

<!-- #################################今日头条(搜索文章评论)################################## -->
<script>
    function btn_select_manage() {
        var search = document.getElementById("search").value;
        var search01 = document.getElementById("search01").value;
        var search2 = document.getElementById("search2").value;
        var search3 = document.getElementById("search3").value;
        var search4 = document.getElementById("search4").value;
        var search5 = document.getElementById("search5").value;
        var search6 = document.getElementById("search6").value;
        var search7 = document.getElementById("search7").value;
        var search8 = document.getElementById("search8").value;
        var search9 = document.getElementById("search9").value;
        var search10 = document.getElementById("search10").value;
        var contentArr= [];
        contentArr.push(search01,search2,search3,search4,search5,search6,search7,search8,search9,search10);
        console.log(contentArr.length+"contentArr");
        for (var i=0; i<contentArr.length; i++){
            if ( contentArr[i]=="" || contentArr[i]==null || contentArr[i]==undefined){
                contentArr.splice(i,1);
                i = i - 1;
            }
        }
        console.log(contentArr.length+"contentArr");
        console.log(contentArr+"contentArr");

        <!-- var searchResult = search1.split("||"); -->
        if (search == "") {
            toastr.warning("翻页数量不能为空");
        }else if (search01 == "") {
            toastr.warning("至少一条内容");
        } else if(!/^[0-9]*$/.test(search)){
            toastr.warning("翻页数量只能输入数字!");
            return false;
        }else {
            var json = { "search": search, "contentArr": contentArr}
            issuedData.setView(JSON.stringify(json));
            $("#select_manage").modal("hide");
            $("#btn_manage").text("抖音(同城评论)插件");
            $("#btn_manage").show();
            $("#btn_manage").prev().show();
            $("#btn_manage").prev().prev().hide();
            Color.success("state_manage");
        }
    }

</script>